<?php
namespace app\api\controller;
class Index extends Common{
	function version($type="app"){
        $version='';
        $app_url='';
        if($type==='manage'){ //管理端版本
            $version=config('setting.manage_version');
            $app_url=config('config.manage_url');
        }else if($type==='mult'){ //分身版本
            $version=config('setting.mult_version');
            $app_url=config('config.mult_url');
        }else{
            $version=config('setting.version');
            $app_url=config('config.app_url');
        }
		return json($version,0,['version'=>$version,'url'=>$app_url]);
	}
}